/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package swym.protocol.server;

import swym.protocol.*;
import swym.server.*;

import java.io.*;
import java.net.*;

/**
 *
 * @author mschaefer
 */
public class CloseMessageHandler extends MessageHandler
{
    public CloseMessageHandler( ActionMessage message ) 
            throws MessageException
    {
        super( message );
    }
    
    /**
     * 
     * @param socket
     * @throws java.io.IOException
     */
    public void handleMessage( ClientSocket socket ) throws IOException, CloseConnectionException
    {     
        // don't confirm a close; the client will do this for us.
        /*writeMessage( socket, new ConfirmActionMessage( userName, 
                                                        clientName, 
                                                        requestID ) );*/
        
        throw new CloseConnectionException( "normal close: " + userName + ":" + clientName );
    }
}
